namespace VIT.DataTransferObjects.Presentation
{
    using System;

    [Serializable]
    public class ProductsDto
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public string ImageThumbName { get; set; }
        public string ImageThumdPath { get; set; }
        public string Description { get; set; }
        public decimal? Price { get; set; }
        public decimal? Sale { get; set; }

        public int VoteRate { get; set; }
        public int VoteNumber { get; set; }
        public int Vote
        {
            get
            {
                return this.VoteNumber == 0 ? 1 : this.VoteRate / this.VoteNumber;
            }
        }

        public int ViewNumber { get; set; }
        public int PayNumber { get; set; }
    }
}